﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreCms.Net.Model.Echat
{

    //如果好用，请收藏地址，帮忙分享。
    public class BarTitle
    {
        /// <summary>
        /// 某地区蒸发量和降水量
        /// </summary>
        public string text { get; set; }
        /// <summary>
        /// 纯属虚构
        /// </summary>
        public string subtext { get; set; }
    }

    public class BarTooltip
    {
        /// <summary>
        /// 
        /// </summary>
        public string trigger { get; set; }
    }

    public class BarLegend
    {
        /// <summary>
        /// 
        /// </summary>
        public List<string> data { get; set; }
    }

    public class XAxisItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> data { get; set; }
    }

    public class YAxisItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string type { get; set; }
    }

    public class DataItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// 最大值
        /// </summary>
        public string name { get; set; }
    }

    public class MarkPoint
    {
        /// <summary>
        /// 
        /// </summary>
        public List<object> data { get; set; }
    }

    public class MarkLineDataItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// 平均值
        /// </summary>
        public string name { get; set; }
    }

    public class MarkLine
    {
        /// <summary>
        /// 
        /// </summary>
        public List<MarkLineDataItem> data { get; set; }
    }

    public class BarSeriesItem
    {
        /// <summary>
        /// 蒸发量
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<double> data { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public MarkPoint markPoint { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public MarkLine markLine { get; set; }
    }

    public class BarDemoModel
    {
        /// <summary>
        /// 
        /// </summary>
        public BarTitle title { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public BarTooltip tooltip { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public BarLegend legend { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool calculable { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<XAxisItem> xAxis { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<YAxisItem> yAxis { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<BarSeriesItem> series { get; set; }
    }

}
